#include "VProgressBar.h"


#include "_UI.h"
VProgressBar::VProgressBar(std::string uiObjectId, double defaultProgress,
                           const int x, const int y, const int width,
                           const int height)
    : ProgressBar(uiObjectId, defaultProgress, x, y, width, height) {
}
void VProgressBar::drawArea(const Rect& area) {
  background_ninePatch->drawArea(area, x, y, width, height);
  front_ninePatch->drawArea(area, x, y, width, int(height * currentProgress));
  UIObject::drawArea(area);
}

